@extends('admin.layouts.wap_simple')
@section('title','更新小程序注册企业模版')
@section('content')

<div class="mview-card-content">
    <div class="m-card" style="padding-top: 0;">
        <div class="m-form-item">
            <label><b>*</b>企业名称:</label>
            <input type="hidden" id="id" value="{{ $templateMini->id }}">
            <input type="text" class="m-input" id="enterprise_name" placeholder="请输入企业名称" value="{{ $templateMini->enterprise_name }}">
        </div>
        <div class="m-form-item">
            <label><b>*</b>企业代码类型:</label>
            <select class="m-select" id="code_type">
                <option value="1" @if($templateMini->code_type == 1) selected @endif>统一社会信用代码</option>
                <option value="2" @if($templateMini->code_type == 2) selected @endif>组织机构代码</option>
                <option value="3" @if($templateMini->code_type == 3) selected @endif>营业执照注册号</option>
            </select>
        </div>
        <div class="m-form-item">
            <label><b>*</b>企业代码:</label>
            <input type="text" class="m-input" id="code" placeholder="请输入企业代码" value="{{ $templateMini->code }}">
        </div>
        <div class="m-form-item">
            <label><b>*</b>法人姓名:</label>
            <input type="text" class="m-input" id="legal_persona_name" placeholder="请输入法人姓名" value="{{ $templateMini->legal_persona_name }}">
        </div>
        <div class="m-form-item">
            <label><b>*</b>法人微信:</label>
            <input type="text" class="m-input" id="legal_persona_wechat" placeholder="请输入法人微信" value="{{ $templateMini->legal_persona_wechat }}">
        </div>
        <div class="m-form-item">
            <button class="m-form-btn m-btn-full mr-2" onclick="miniListUpdate();">立即更新模版</button>
            <button class="m-form-btn m-bg-danger m-btn-full" onclick="miniListDelete();">删除模板</button>
        </div>
    </div>
</div>
<script type="text/javascript" src="/assets/admin/js/dev/template_setting.86512.js?v={{ time() }}"></script>
@endsection
